using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Package
{
    /// <summary>
    /// <para>Package Locator</para>
    /// <para>Package a locator or composite locator  to create a single compressed .gcpk file.</para>
    /// <para>打包定位器或复合定位器以创建单个压缩的 .gcpk 文件。</para>
    /// </summary>    
    [DisplayName("Package Locator")]
    public class PackageLocator : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public PackageLocator()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_locator">
        /// <para>Input Locator</para>
        /// <para>The locator or composite locator that will be packaged.</para>
        /// <para>将要打包的定位器或复合定位器。</para>
        /// </param>
        /// <param name="_output_file">
        /// <para>Output File</para>
        /// <para>The name and location of the output locator package (.gcpk).</para>
        /// <para>输出定位器包 （.gcpk） 的名称和位置。</para>
        /// </param>
        public PackageLocator(object _in_locator, object _output_file)
        {
            this._in_locator = _in_locator;
            this._output_file = _output_file;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Package Locator";

        public override string CallName => "management.PackageLocator";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_locator, _output_file, _copy_arcsde_locator.GetGPValue(), _additional_files, _summary, _tags];

        /// <summary>
        /// <para>Input Locator</para>
        /// <para>The locator or composite locator that will be packaged.</para>
        /// <para>将要打包的定位器或复合定位器。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Locator")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_locator { get; set; }


        /// <summary>
        /// <para>Output File</para>
        /// <para>The name and location of the output locator package (.gcpk).</para>
        /// <para>输出定位器包 （.gcpk） 的名称和位置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_file { get; set; }


        /// <summary>
        /// <para>Composite locator only: copy participating locators in enterprise database instead of referencing them</para>
        /// <para>This parameter has no effect in ArcGIS Pro. It remains only to support backward compatibility.</para>
        /// <para>此参数在 ArcGIS Pro 中不起作用。它仍然只是支持向后兼容性。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Composite locator only: copy participating locators in enterprise database instead of referencing them")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _copy_arcsde_locator_value _copy_arcsde_locator { get; set; } = _copy_arcsde_locator_value._true;

        public enum _copy_arcsde_locator_value
        {
            /// <summary>
            /// <para>COPY_ARCSDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("COPY_ARCSDE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>PRESERVE_ARCSDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRESERVE_ARCSDE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Additional Files</para>
        /// <para>Adds additional files to a package. Additional files, such as .doc, .txt, .pdf, and so on, are used to provide more information about the contents and purpose of the package.</para>
        /// <para>将其他文件添加到包中。其他文件（如 .doc、.txt、.pdf 等）用于提供有关包的内容和用途的详细信息。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Additional Files")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _additional_files { get; set; } = null;


        /// <summary>
        /// <para>Summary</para>
        /// <para>Adds summary information to the properties of the package.</para>
        /// <para>将摘要信息添加到包的属性中。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Summary")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _summary { get; set; } = null;


        /// <summary>
        /// <para>Tags</para>
        /// <para>Adds tag information to the properties of the package. Multiple tags can be added or separated by a comma or semicolon.</para>
        /// <para>将标记信息添加到包的属性中。可以添加多个标签，也可以用逗号或分号分隔。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tags")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _tags { get; set; } = null;


        public PackageLocator SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}